AmpProject\AmpWP\MobileRedirection A

Total Complexity 74
Dependencies 8
Dependents 0
Total lines 587
Lines of code 297
Logical lines of code 139
Comment lines 234
Methods 24
Properties 1

Methods 24

Method Rating Maintainability Complexity Lines of code
redirect()
A
47 14 35
add_mobile_version_switcher_link()
A
41 9 64
is_mobile_request()
S
52 7 25
register()
S
52 7 22
add_mobile_version_switcher_styles()
S
59 4 14
set_mobile_redirection_disabled_cookie()
S
52 3 24
filter_amp_to_amp_linking_element_excluded()
S
63 3 11
is_using_client_side_redirection()
S
70 3 6
filter_comment_post_redirect()
S
64 3 10
add_mobile_alternative_link()
S
67 3 8
add_mobile_redirect_script()
S
58 1 15
is_redirection_disabled_via_query_param()
S
77 2 3
sanitize_options()
S
70 2 6
filter_amp_to_amp_linking_element_query_vars()
S
71 2 6
maybe_add_mobile_switcher_link()
S
73 2 6
get_mobile_user_agents()
S
63 1 12
get_current_amp_url()
S
73 1 5
is_redirection_disabled_via_cookie()
S
79 1 3
add_a2a_linking_hooks()
S
74 1 4
add_mobile_switcher_footer_hooks()
S
75 1 4
add_mobile_switcher_head_hooks()
S
75 1 4
add_noamp_mobile_query_var()
S
79 1 3
filter_default_options()
S
76 1 4
__construct()
S
81 1 3